package com.dyp.log4j2demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Log4j2DemoApplication implements CommandLineRunner {
    private Logger logger = LoggerFactory.getLogger(Log4j2DemoApplication.class);
	public static void main(String[] args) {
		SpringApplication.run(Log4j2DemoApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		logger.debug("dyp test =========");
	}
}
